<?php
declare (strict_types=1);

namespace app\command;

use app\event\deliver\KafakaQueue;
use think\console\Command;
use think\console\Input;
use think\console\input\Argument;
use think\console\input\Option;
use think\console\Output;
use think\facade\Log;

class kafakTest extends Command
{
    protected function configure()
    {
        // 指令配置
        $this->setName('kafaktest')
            ->setDescription('the app\command\kafaktest command');
    }

    protected function execute(Input $input, Output $output)
    {
        $params = [
          'a'=>1,
          'type'=>'command'
        ];
        KafakaQueue::sendJob(static::class,$params,"test");
    }
}
